Skip to content

Add PATCH /prompt/drop endpoint#87

Merged
goldlabelapps merged 1 commit intomasterfrom
staging
Apr 14, 2026
Merged

Add PATCH /prompt/drop endpoint#87
goldlabelapps merged 1 commit intomasterfrom
staging

Conversation

@goldlabelapps
Copy link
Copy Markdown
Owner

Add an admin endpoint to empty the prompt table. Introduces app/api/prompt/drop.py with a PATCH /prompt/drop route that requires API key auth, uses a direct DB connection to TRUNCATE TABLE prompt RESTART IDENTITY CASCADE, commits the change, and returns standardized meta/data responses on success or error. Also register the new router in app/api/prompt/init.py and app/api/routes.py so the route is included in the API.

Add an admin endpoint to empty the prompt table. Introduces app/api/prompt/drop.py with a PATCH /prompt/drop route that requires API key auth, uses a direct DB connection to TRUNCATE TABLE prompt RESTART IDENTITY CASCADE, commits the change, and returns standardized meta/data responses on success or error. Also register the new router in app/api/prompt/__init__.py and app/api/routes.py so the route is included in the API.
@goldlabelapps goldlabelapps self-assigned this Apr 14, 2026
@goldlabelapps goldlabelapps merged commit a7cdc7d into master Apr 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant